import VueRouter from "vue-router"

import WorkBench from "@/pages/WorkBench";
import Member from "@/pages/Member";
import MemberDocument from "@/pages/MemberDocument";
import MemberAnalysis from "@/pages/MemberAnalysis";
import ExaminationUploaded from "@/pages/ExaminationUploaded";
import Appointment from "@/pages/Appointment";
import StatisticalAnalysis from "@/pages/StatisticalAnalysis";
import HealthAssessment from "@/pages/HealthAssessment";
import ChineseMedicine from "@/pages/ChineseMedicine";
import WorkloadStatistics from "@/pages/WorkloadStatistics";
import AppointmentList from "@/pages/AppointmentList";
import AppointmentSetUp from "@/pages/AppointmentSetUp";
import PackageManagemnet from "@/pages/PackageManagemnet";
import ProjectManagement from "@/pages/ProjectManagement";
import GroupManagement from "@/pages/GroupManagement";
import GroupInfo from "@/components/GroupInfo";
import ProjectInfo from "@/components/ProjectInfo";
import Login from "@/pages/Login";
import Index from "@/pages/Index";
import setmealStatistic from "@/pages/SetmealStatistic";
import businessStatistic from "@/pages/BusinessStatistic";

export default new VueRouter({
    routes: [
        {
            path:"/index",
            name:"Index",
            component:Index,
            children:[
                {
                    path: 'member',
                    component: Member,
                    children:[
                        {
                            path:"document",
                            component:MemberDocument
                        },
                        {
                            path: "member_analysis",
                            component: MemberAnalysis,
                        },
                        {
                            path: "examination_uploaded",
                            component: ExaminationUploaded
                        }
                    ]
                },
                {
                    path: 'bench',
                    component: WorkBench,
                },
                {
                    path: 'health',
                    component: HealthAssessment,
                    children:[
                        {
                            path: 'chinese_medicine',
                            component: ChineseMedicine
                        }
                    ]
                },
                {
                    path: 'analysis',
                    component: StatisticalAnalysis,
                    children:[
                        {
                            path: 'workload',
                            component: WorkloadStatistics
                        },
                        {
                            path: "setmeal",
                            component: setmealStatistic
                        },
                        {
                            path: "business",
                            component: businessStatistic
                        }
                    ]
                },
                {
                    path: 'appointment',
                    component: Appointment,
                    children:[
                        {
                            path: "appointment_list",
                            component: AppointmentList
                        },
                        {
                            path: "appointment_setup",
                            component: AppointmentSetUp
                        },
                        {
                            path: 'package_management',
                            component: PackageManagemnet
                        },
                        {
                            path: 'project_management',
                            component: ProjectManagement
                        },
                        {
                            path: "group_management",
                            component: GroupManagement,
                            children:[
                                {
                                    path:'group_info',
                                    component: GroupInfo
                                },
                                {
                                    path:'project_info',
                                    component: ProjectInfo
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
          path:'/login',
          component:Login,
            name:"Login"
        },

    ]
})
